home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / sound / tiasound.h < prev    next >
C/C++ Source or Header  |  2000-02-18  |  3KB  |  54 lines

  1. /*****************************************************************************/
  2. /*                                                                           */
  3. /* Module:  TIA Chip Sound Simulator Includes, V1.1                          */
  4. /* Purpose: Define global function prototypes and structures for the TIA     */
  5. /*          Chip Sound Simulator.                                            */
  6. /* Author:  Ron Fries                                                        */
  7. /*                                                                           */
  8. /* Revision History:                                                         */
  9. /*    10-Sep-96 - V1.0 - Initial Release                                     */
  10. /*    14-Jan-97 - V1.1 - Added compiler directives to facilitate compilation */
  11. /*                       on a C++ compiler.                                  */
  12. /*                                                                           */
  13. /*****************************************************************************/
  14. /*                                                                           */
  15. /*                 License Information and Copyright Notice                  */
  16. /*                 ========================================                  */
  17. /*                                                                           */
  18. /* TiaSound is Copyright(c) 1997 by Ron Fries                                */
  19. /*                                                                           */
  20. /* This library is free software; you can redistribute it and/or modify it   */
  21. /* under the terms of version 2 of the GNU Library General Public License    */
  22. /* as published by the Free Software Foundation.                             */
  23. /*                                                                           */
  24. /* This library is distributed in the hope that it will be useful, but       */
  25. /* WITHOUT ANY WARRANTY; without even the implied warranty of                */
  26. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library */
  27. /* General Public License for more details.                                  */
  28. /* To obtain a copy of the GNU Library General Public License, write to the  */
  29. /* Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   */
  30. /*                                                                           */
  31. /* Any permitted reproduction of these routines, in whole or in part, must   */
  32. /* bear this legend.                                                         */
  33. /*                                                                           */
  34. /*****************************************************************************/
  35.  
  36. #ifndef _TIASOUND_H
  37. #define _TIASOUND_H
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. void Tia_sound_init (UINT16 sample_freq, UINT16 playback_freq);
  44. void Update_tia_sound (UINT16 addr, UINT8 val);
  45. void Tia_process_2 (register unsigned char *buffer,
  46.                     register UINT16 n);
  47. void Tia_process (INT16 *buffer, UINT16 n);
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif
  54.